import request from '@/utils/request'

// 查询房型图片列表
export function listTbapartlayoutimage(query) {
  return request({
    url: '/apartment/tbapartlayoutimage/list',
    method: 'get',
    params: query
  })
}

// 查询房型图片详细
export function getTbapartlayoutimage(id) {
  return request({
    url: '/apartment/tbapartlayoutimage/' + id,
    method: 'get'
  })
}

// 新增房型图片
export function addTbapartlayoutimage(data) {
  return request({
    url: '/apartment/tbapartlayoutimage',
    method: 'post',
    data: data
  })
}

// 修改房型图片
export function updateTbapartlayoutimage(data) {
  return request({
    url: '/apartment/tbapartlayoutimage',
    method: 'put',
    data: data
  })
}

// 删除房型图片
export function delTbapartlayoutimage(id) {
  return request({
    url: '/apartment/tbapartlayoutimage/' + id,
    method: 'delete'
  })
}
